package br.com.mmm.javacenter.framework.view.formatters;

import java.text.SimpleDateFormat;
import java.util.Calendar;

import br.com.mmm.javacenter.framework.annotations.FormatterComponent;

@FormatterComponent({
	Calendar.class
})
public class DateFormatter implements Formatter<Calendar>{

	private static SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");	
	
	public String format(Calendar object) {
		return sdf.format(object.getTime());
	}

}
